package com.zpark.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PackageName: com.zpark.config
 * @ClassName: RabbitMQConfig
 * @Description:
 * @author: RZS
 * @date: 2022/12/13  17:31
 */
@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue simpleQueue() {
        return new Queue("simple_queue");
    }

    @Bean
    public Queue workQueue() {
        Queue queue = new Queue("my_work_queue");
        return queue;
    }
}
